package cn.tedu.myweb.mapper;

import cn.tedu.myweb.model.Friends;
import cn.tedu.myweb.model.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface FriendsMapper extends BaseMapper<Friends> {
    @Select("select * from user where username=#{username}")
    User findUserByUsername(String username);

    @Select("select * from user where phone=#{phone}")
    User findUserByPhone(String phone);
}
